package com.dome.dao;

import com.dome.mapper.ResourceMapper;
import com.dome.mapper.RoleMapper;
import com.dome.model.Resource;
import com.dome.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ResourceDao {
    @Autowired
	ResourceMapper resourceMapper;
	public void deleteResourceWH(long id) {
		resourceMapper.deleteResourceWH(id);
	}

	public List<Resource> selectResource(long id) {
		return resourceMapper.selectResource(id);
	}

	public void insertResourceWH(List<Resource> resoueceBJ) {
		resourceMapper.insertResourceWH(resoueceBJ);
	}

}
